package com.data.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.ProblemVo;
import com.data.core.entry.Problem;


/**
* @version: V1.0
* @author: szw
* @className: ProblemService
* @packageName: ProblemService
* @description: 问题接口
* @data: 2021-1-21
**/ 
public interface ProblemService extends IService<Problem> {

    /**
     * 新增问题
     * @param problemVo
     * @return int
     */
    int save(ProblemVo problemVo)throws Exception;


    /**
     * 更新问题
     * @param problemVo
     * @return int
     */
    int update(ProblemVo problemVo)throws Exception;

    /**
     * 查询问题
     * @param id
     * @return Problem
     */
    Problem findProblemById(Long id)throws Exception;

    /**
     * 删除问题
     * @param id
     * @return
     */
    int delete(Long id)throws Exception;

    /**
     * 分页查询问题列表
     * @param page
     * @param problemVo
     * @return
     * @throws Exception
     */
    IPage<Problem> problemPage(Page<Problem> page, ProblemVo problemVo)throws Exception;
}
